package com.atguigu.springcloud.dao;


import com.atguigu.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;


@org.apache.ibatis.annotations.Mapper
public interface PaymentDao extends Mapper<Payment> {

    @Select("select * from payment where id = #{id}")
    public Payment getbyid(@Param("id") Long id);


    @Delete("delete  from payment where id = #{id}")
    public int deletebyid(@Param("id") Long id);

}
